using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using Models;
using IDAL;

namespace ITAM.Pages.Assets
{
    public class DeviceModel : PageModel
    {
        private IDeviceRecordService deviceRecordService;
        public List<DeviceRecord> Devices { get; set; }

        public DeviceModel(IDeviceRecordService service)
        {
            this.deviceRecordService=service;
        }
        public void OnGet()
        {
            Devices= deviceRecordService.GetDevices(1,10);
        }
    }
}